package com.xyzq.service.ya.impl;

import java.util.Date;
import java.util.List;

import org.appfuse.service.impl.GenericManagerImpl;

import com.xyzq.dao.ya.AccountDayFundDAO;
import com.xyzq.model.ya.data.Account;
import com.xyzq.model.ya.data.AccountDayFund;
import com.xyzq.service.ya.AccountDayFundManager;

public class AccountDayFundManagerImpl extends
		GenericManagerImpl<AccountDayFund, Long> implements
		AccountDayFundManager {

	private AccountDayFundDAO accountDayFundDao;

	public AccountDayFundManagerImpl(AccountDayFundDAO accountDayFundDao) {
		super(accountDayFundDao);
		this.accountDayFundDao = accountDayFundDao;
	}

	public void setAccountDayFundDao(AccountDayFundDAO accountDayFundDao) {
		this.accountDayFundDao = accountDayFundDao;
	}

	public AccountDayFundDAO getAccountDayFundDao() {
		return accountDayFundDao;
	}

	public List<AccountDayFund> findWithValueDay(Date valueDay) {
		// TODO Auto-generated method stub
		return this.accountDayFundDao.findWithValueDate(valueDay);
	}

	public List<AccountDayFund> findWithValueDay(Date valueDay, Account account) {
		// TODO Auto-generated method stub
		return this.accountDayFundDao.findWithValueDate(valueDay, account);
	}

}
